const detailTab = {
  state: {
    tab: 0
  },
  mutations: {
    GET_DETAILTAB(state, tab) {
      console.log(':::::state::::::', state)
      state.tab = tab
    }
  },
  actions: {
    setDetailTab({ commit }, tab) {
      return new Promise((resolve) => {
        commit('GET_DETAILTAB', tab)
        resolve();
      })
    }
  }
}

export default detailTab;
